import 'dart:convert';

import 'history_today_model.dart';

class HistoryTodayState {
  late HistoryTodayModel model;

  HistoryTodayState init() {
    String initJson = '''
    {
        "code":"1",
        "day":"00/ 00",
        "result":[
        {
        "date":"",
        "title":"加载中..."
        }
        ]
        }
    ''';
    HistoryTodayModel model = HistoryTodayModel.fromJson(jsonDecode(initJson));
    return HistoryTodayState()
      ..model = model;
  }

  HistoryTodayState setModel(HistoryTodayModel model) {
    return HistoryTodayState()
      ..model = model;
  }

  HistoryTodayState clone() {
    return HistoryTodayState()
      ..model = this.model;
  }
}
